<template>
  <div class="chat-view">
    <h1>💬 聊天 在线状态：{{ isLogin }}</h1>
    <p>SettingView</p>

    <p>登录用户信息：{{ userInfo }}</p>


    <el-table :data="tableData" border>
      <el-table-column prop="name" label="名称"></el-table-column>
    </el-table>
  </div>
</template>

<script>
import RightBar from '@/components/RightBar.vue'
import { handleLogin, handleLogout } from '@/api/user'
export default {
  components: { RightBar },
  data() {
    return {
      defaultAvatar: 'https://iknow-pic.cdn.bcebos.com/962bd40735fae6cd17bafbff1db30f2442a70f25',
      isRightbarCollapsed: true,
      tableData: [
        { name: '测试1' },
        { name: '测试2' }
      ]
    };
  },
  computed: {
    isLogin() {
      return this.$store.getters['user/isLogin'];
    },
    userInfo() {
      return this.$store.state.user.userInfo || {}
    }
  },
  mounted() {
    console.log('加载表格数数据')
  },
  methods: {


  },
};
</script>

<style scoped></style>